using B.S.NewMedical.Api.Read.DTOS.Consult;
using B.S.NewMedical.ErrorCode;
using MediatR;

namespace B.S.NewMedical.Api.Read.Application.Command.MobileService.Consult
{
    /// <summary>
    /// 获取健康咨询问题列表命令
    /// </summary>
    public class GetConsultQuestionsCommand : IRequest<ApiResult<PagedList<ConsultQuestionDto>>>
    {
        /// <summary>
        /// 分类ID
        /// </summary>
        public int? CatId { get; set; }

        /// <summary>
        /// 关键词
        /// </summary>
        public string Keyword { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 每页条数
        /// </summary>
        public int PageSize { get; set; }

        public GetConsultQuestionsCommand(int? catId, string keyword, int pageIndex, int pageSize)
        {
            CatId = catId;
            Keyword = keyword;
            PageIndex = pageIndex;
            PageSize = pageSize;
        }
    }
} 